.class public Lcom/ss/android/socialbase/downloader/downloader/e;
.super Ljava/lang/Object;
.source "DownloadResponseHandler.java"


# static fields
.field private static x:Ljava/lang/String; = "ResponseHandler"


# instance fields
.field private final a:Les/zn0;

.field private final b:Les/yn0;

.field private final c:Lcom/ss/android/socialbase/downloader/i/e;

.field private d:Lcom/ss/android/socialbase/downloader/downloader/l;

.field private e:Lcom/ss/android/socialbase/downloader/impls/k;

.field private f:Lcom/ss/android/socialbase/downloader/downloader/t;

.field private g:Les/co0;

.field private volatile h:Z

.field private volatile i:Z

.field private final j:Lcom/ss/android/socialbase/downloader/l/e;

.field private k:J

.field private l:J

.field private volatile m:J

.field private volatile n:J

.field private final o:Z

.field private final p:Les/jo0;

.field private final q:Les/hm0;

.field private final r:Z

.field private final s:J

.field private final t:J

.field private u:Z

.field private volatile v:J

.field private volatile w:J


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Les/zn0;Lcom/ss/android/socialbase/downloader/i/e;Les/yn0;Lcom/ss/android/socialbase/downloader/l/e;)V
    .locals 4

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-wide/16 v0, 0x0

    .line 2
    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->v:J

    .line 3
    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->w:J

    .line 4
    iput-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    .line 5
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->v()Lcom/ss/android/socialbase/downloader/downloader/l;

    move-result-object v2

    iput-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->d:Lcom/ss/android/socialbase/downloader/downloader/l;

    .line 6
    instance-of v3, v2, Lcom/ss/android/socialbase/downloader/impls/d;

    if-eqz v3, :cond_0

    .line 7
    check-cast v2, Lcom/ss/android/socialbase/downloader/impls/d;

    .line 8
    invoke-virtual {v2}, Lcom/ss/android/socialbase/downloader/impls/d;->a()Lcom/ss/android/socialbase/downloader/impls/k;

    move-result-object v3

    iput-object v3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    .line 9
    invoke-virtual {v2}, Lcom/ss/android/socialbase/downloader/impls/d;->e()Lcom/ss/android/socialbase/downloader/downloader/t;

    move-result-object v2

    iput-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->f:Lcom/ss/android/socialbase/downloader/downloader/t;

    .line 10
    :cond_0
    iput-object p2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->c:Lcom/ss/android/socialbase/downloader/i/e;

    .line 11
    iput-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    .line 12
    iput-object p4, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    .line 13
    invoke-virtual {p3}, Les/yn0;->n()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    .line 14
    iput-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J

    .line 15
    invoke-virtual {p3}, Les/yn0;->d()Z

    move-result p2

    const/4 p4, 0x0

    if-eqz p2, :cond_1

    .line 16
    invoke-virtual {p3}, Les/yn0;->q()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    goto :goto_0

    .line 17
    :cond_1
    invoke-virtual {p3, p4}, Les/yn0;->c(Z)J

    move-result-wide v2

    iput-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    .line 18
    :goto_0
    invoke-virtual {p3}, Les/yn0;->p()J

    move-result-wide p2

    iput-wide p2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->m:J

    .line 19
    invoke-static {}, Les/hm0;->c()Les/hm0;

    move-result-object p2

    iput-object p2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->q:Les/hm0;

    .line 20
    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result p1

    invoke-static {p1}, Les/jo0;->a(I)Les/jo0;

    move-result-object p1

    iput-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const-string p2, "sync_strategy"

    .line 21
    invoke-virtual {p1, p2, p4}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    const/4 p2, 0x1

    if-ne p1, p2, :cond_2

    const/4 p4, 0x1

    :cond_2
    iput-boolean p4, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->r:Z

    if-eqz p4, :cond_5

    .line 22
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const/16 p2, 0x1388

    const-string p3, "sync_interval_ms_fg"

    invoke-virtual {p1, p3, p2}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    int-to-long p1, p1

    .line 23
    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const/16 p4, 0x3e8

    const-string v0, "sync_interval_ms_bg"

    invoke-virtual {p3, v0, p4}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p3

    int-to-long p3, p3

    const-wide/16 v0, 0x1f4

    cmp-long v2, p1, v0

    if-gez v2, :cond_3

    move-wide p1, v0

    .line 24
    :cond_3
    iput-wide p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->s:J

    cmp-long p1, p3, v0

    if-gez p1, :cond_4

    move-wide p3, v0

    .line 25
    :cond_4
    iput-wide p3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->t:J

    goto :goto_1

    .line 26
    :cond_5
    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->s:J

    .line 27
    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->t:J

    :goto_1
    const/high16 p1, 0x10000

    .line 28
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result p1

    iput-boolean p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    return-void
.end method

.method static synthetic a(Lcom/ss/android/socialbase/downloader/downloader/e;)Lcom/ss/android/socialbase/downloader/i/e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->c:Lcom/ss/android/socialbase/downloader/i/e;

    return-object p0
.end method

.method private a(Ljava/io/InputStream;)Lcom/ss/android/socialbase/downloader/j/c;
    .locals 8

    .line 9
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->C()I

    move-result v0

    .line 10
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const/4 v2, 0x0

    const-string v3, "rw_concurrent"

    invoke-virtual {v1, v3, v2}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v1

    const/4 v3, 0x1

    if-ne v1, v3, :cond_0

    .line 11
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->W()I

    move-result v1

    if-ne v1, v3, :cond_0

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    .line 12
    invoke-virtual {v1}, Les/zn0;->c0()J

    move-result-wide v4

    const-wide/32 v6, 0x1400000

    cmp-long v1, v4, v6

    if-lez v1, :cond_0

    .line 13
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const/4 v4, 0x4

    const-string v5, "rw_concurrent_max_buffer_count"

    invoke-virtual {v1, v5, v4}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v1

    .line 14
    :try_start_0
    new-instance v4, Lcom/ss/android/socialbase/downloader/j/a;

    invoke-direct {v4, p1, v0, v1}, Lcom/ss/android/socialbase/downloader/j/a;-><init>(Ljava/io/InputStream;II)V

    .line 15
    iput-boolean v3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->u:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-object v4

    :catchall_0
    move-exception v1

    .line 16
    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V

    .line 17
    :cond_0
    new-instance v1, Lcom/ss/android/socialbase/downloader/j/e;

    invoke-direct {v1, p1, v0}, Lcom/ss/android/socialbase/downloader/j/e;-><init>(Ljava/io/InputStream;I)V

    .line 18
    iput-boolean v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->u:Z

    return-object v1
.end method

.method private a(Lcom/ss/android/socialbase/downloader/downloader/l;)V
    .locals 16

    move-object/from16 v0, p0

    move-object/from16 v7, p1

    if-nez v7, :cond_0

    return-void

    :cond_0
    const/4 v1, 0x0

    .line 29
    instance-of v8, v7, Les/mm0;

    if-eqz v8, :cond_1

    .line 30
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/f;->b()Z

    move-result v1

    invoke-static {v1}, Lcom/ss/android/socialbase/downloader/impls/l;->a(Z)Lcom/ss/android/socialbase/downloader/downloader/o;

    move-result-object v1

    if-nez v1, :cond_1

    return-void

    :cond_1
    move-object v15, v1

    .line 31
    iget-object v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v1}, Les/yn0;->d()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 32
    iget-object v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v1}, Les/yn0;->e()Les/yn0;

    move-result-object v1

    goto :goto_0

    .line 33
    :cond_2
    iget-object v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    :goto_0
    move-object v5, v1

    if-eqz v5, :cond_7

    .line 34
    iget-wide v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-virtual {v5, v1, v2}, Les/yn0;->b(J)V

    if-eqz v8, :cond_3

    if-eqz v15, :cond_3

    .line 35
    invoke-virtual {v5}, Les/yn0;->k()I

    move-result v10

    invoke-virtual {v5}, Les/yn0;->s()I

    move-result v11

    invoke-virtual {v5}, Les/yn0;->b()I

    move-result v12

    iget-wide v13, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    move-object v9, v15

    invoke-interface/range {v9 .. v14}, Lcom/ss/android/socialbase/downloader/downloader/o;->a(IIIJ)V

    move-object v11, v5

    goto :goto_1

    .line 36
    :cond_3
    invoke-virtual {v5}, Les/yn0;->k()I

    move-result v2

    invoke-virtual {v5}, Les/yn0;->s()I

    move-result v3

    invoke-virtual {v5}, Les/yn0;->b()I

    move-result v4

    iget-wide v9, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    move-object/from16 v1, p1

    move-object v11, v5

    move-wide v5, v9

    invoke-interface/range {v1 .. v6}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IIIJ)V

    .line 37
    :goto_1
    invoke-virtual {v11}, Les/yn0;->h()Z

    move-result v1

    if-eqz v1, :cond_9

    const/4 v1, 0x0

    .line 38
    invoke-virtual {v11}, Les/yn0;->i()Z

    move-result v2

    if-eqz v2, :cond_5

    .line 39
    invoke-virtual {v11}, Les/yn0;->j()J

    move-result-wide v2

    .line 40
    iget-wide v4, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    cmp-long v6, v2, v4

    if-lez v6, :cond_5

    if-eqz v8, :cond_4

    if-eqz v15, :cond_4

    .line 41
    invoke-virtual {v11}, Les/yn0;->k()I

    move-result v1

    invoke-virtual {v11}, Les/yn0;->b()I

    move-result v4

    invoke-interface {v15, v1, v4, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/o;->a(IIJ)V

    goto :goto_2

    .line 42
    :cond_4
    invoke-virtual {v11}, Les/yn0;->k()I

    move-result v1

    invoke-virtual {v11}, Les/yn0;->b()I

    move-result v4

    invoke-interface {v7, v1, v4, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IIJ)V

    :goto_2
    const/4 v1, 0x1

    :cond_5
    if-nez v1, :cond_9

    if-eqz v8, :cond_6

    if-eqz v15, :cond_6

    .line 43
    invoke-virtual {v11}, Les/yn0;->k()I

    move-result v1

    invoke-virtual {v11}, Les/yn0;->b()I

    move-result v2

    iget-wide v3, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-interface {v15, v1, v2, v3, v4}, Lcom/ss/android/socialbase/downloader/downloader/o;->a(IIJ)V

    goto :goto_3

    .line 44
    :cond_6
    invoke-virtual {v11}, Les/yn0;->k()I

    move-result v1

    invoke-virtual {v11}, Les/yn0;->b()I

    move-result v2

    iget-wide v3, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-interface {v7, v1, v2, v3, v4}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IIJ)V

    goto :goto_3

    .line 45
    :cond_7
    iget-object v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v1}, Les/yn0;->d()Z

    move-result v1

    if-eqz v1, :cond_9

    if-eqz v8, :cond_8

    if-eqz v15, :cond_8

    .line 46
    iget-object v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v1}, Les/yn0;->k()I

    move-result v1

    iget-object v2, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v2}, Les/yn0;->s()I

    move-result v2

    iget-wide v3, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-interface {v15, v1, v2, v3, v4}, Lcom/ss/android/socialbase/downloader/downloader/o;->a(IIJ)V

    goto :goto_3

    .line 47
    :cond_8
    iget-object v1, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v1}, Les/yn0;->k()I

    move-result v1

    iget-object v2, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v2}, Les/yn0;->s()I

    move-result v2

    iget-wide v3, v0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-interface {v7, v1, v2, v3, v4}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IIJ)V

    :cond_9
    :goto_3
    return-void
.end method

.method private a(Z)V
    .locals 8

    .line 19
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    .line 20
    iget-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->w:J

    sub-long v2, v0, v2

    .line 21
    iget-boolean v4, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->r:Z

    if-eqz v4, :cond_1

    .line 22
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->q:Les/hm0;

    invoke-virtual {p1}, Les/hm0;->b()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-wide v4, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->s:J

    goto :goto_0

    :cond_0
    iget-wide v4, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->t:J

    :goto_0
    cmp-long p1, v2, v4

    if-lez p1, :cond_3

    .line 23
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 24
    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->w:J

    goto :goto_1

    .line 25
    :cond_1
    iget-wide v4, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    iget-wide v6, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->v:J

    sub-long/2addr v4, v6

    if-nez p1, :cond_2

    .line 26
    invoke-direct {p0, v4, v5, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/e;->b(JJ)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 27
    :cond_2
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 28
    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->w:J

    :cond_3
    :goto_1
    return-void
.end method

.method private b(JJ)Z
    .locals 3

    const-wide/32 v0, 0x10000

    cmp-long v2, p1, v0

    if-lez v2, :cond_0

    const-wide/16 p1, 0x1f4

    cmp-long v0, p3, p1

    if-lez v0, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private f()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->h:Z

    if-nez v0, :cond_1

    iget-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method private g()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->c:Lcom/ss/android/socialbase/downloader/i/e;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->q()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 3
    new-instance v1, Lcom/ss/android/socialbase/downloader/downloader/e$a;

    invoke-direct {v1, p0}, Lcom/ss/android/socialbase/downloader/downloader/e$a;-><init>(Lcom/ss/android/socialbase/downloader/downloader/e;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    :cond_1
    return-void
.end method

.method private h()V
    .locals 4

    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 1
    :try_start_0
    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    invoke-virtual {v2}, Les/co0;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v2, 0x1

    goto :goto_0

    :catch_0
    const/4 v2, 0x0

    :goto_0
    if-eqz v2, :cond_4

    .line 2
    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v2, v1}, Les/zn0;->e(Z)V

    .line 3
    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->W()I

    move-result v2

    if-le v2, v1, :cond_0

    const/4 v0, 0x1

    .line 4
    :cond_0
    invoke-static {}, Lcom/ss/android/socialbase/downloader/m/f;->b()Z

    move-result v1

    invoke-static {v1}, Lcom/ss/android/socialbase/downloader/impls/l;->a(Z)Lcom/ss/android/socialbase/downloader/downloader/o;

    move-result-object v1

    if-eqz v0, :cond_2

    .line 5
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->f:Lcom/ss/android/socialbase/downloader/downloader/t;

    invoke-direct {p0, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    if-eqz v1, :cond_1

    .line 6
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-interface {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/o;->c(Les/zn0;)Z

    goto :goto_1

    .line 7
    :cond_1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->f:Lcom/ss/android/socialbase/downloader/downloader/t;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->z()J

    move-result-wide v2

    invoke-interface {v0, v1, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IJ)Les/zn0;

    goto :goto_1

    :cond_2
    if-eqz v1, :cond_3

    .line 8
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-interface {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/o;->c(Les/zn0;)Z

    goto :goto_1

    .line 9
    :cond_3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->f:Lcom/ss/android/socialbase/downloader/downloader/t;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v1}, Les/yn0;->k()I

    move-result v1

    iget-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-interface {v0, v1, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IJ)Les/zn0;

    .line 10
    :goto_1
    iget-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    iput-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->v:J

    :cond_4
    return-void
.end method


# virtual methods
.method public a()J
    .locals 2

    .line 2
    iget-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    return-wide v0
.end method

.method public a(JJ)V
    .locals 0

    .line 7
    iput-wide p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->m:J

    .line 8
    iput-wide p3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    return-void
.end method

.method public a(JJJ)V
    .locals 0

    .line 3
    iput-wide p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    .line 4
    iput-wide p1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J

    .line 5
    iput-wide p3, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->m:J

    .line 6
    iput-wide p5, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    return-void
.end method

.method public b()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->h:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->h:Z

    .line 3
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->g()V

    return-void
.end method

.method public c()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v0

    const/4 v1, 0x1

    .line 3
    :try_start_0
    iput-boolean v1, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    .line 4
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 5
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->g()V

    return-void

    :catchall_0
    move-exception v1

    .line 6
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method public d()V
    .locals 18
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/ss/android/socialbase/downloader/e/a;
        }
    .end annotation

    move-object/from16 v1, p0

    .line 1
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->f()Z

    move-result v0

    if-nez v0, :cond_30

    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    if-nez v0, :cond_0

    goto/16 :goto_1a

    .line 2
    :cond_0
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->c:Lcom/ss/android/socialbase/downloader/i/e;

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/m/f;->a(Lcom/ss/android/socialbase/downloader/i/c;)J

    move-result-wide v2

    const-wide/16 v4, 0x0

    cmp-long v0, v2, v4

    if-eqz v0, :cond_2f

    .line 3
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->b:Les/yn0;

    invoke-virtual {v0}, Les/yn0;->l()J

    move-result-wide v6

    .line 4
    :try_start_0
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;
    :try_end_0
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_0 .. :try_end_0} :catch_d
    .catchall {:try_start_0 .. :try_end_0} :catchall_a

    :try_start_1
    invoke-virtual {v0}, Les/zn0;->S0()Ljava/lang/String;

    move-result-object v0

    iget-object v9, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v9}, Les/zn0;->T0()Ljava/lang/String;

    move-result-object v9

    iget-object v10, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const-string v11, "flush_buffer_size_byte"

    const/4 v12, -0x1

    .line 5
    invoke-virtual {v10, v11, v12}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v10

    .line 6
    invoke-static {v0, v9, v10}, Lcom/ss/android/socialbase/downloader/m/f;->a(Ljava/lang/String;Ljava/lang/String;I)Les/co0;

    move-result-object v0

    iput-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;
    :try_end_1
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_1 .. :try_end_1} :catch_a
    .catchall {:try_start_1 .. :try_end_1} :catchall_a

    .line 7
    :try_start_2
    iget-wide v9, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-virtual {v0, v9, v10}, Les/co0;->a(J)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_9
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_2 .. :try_end_2} :catch_a
    .catchall {:try_start_2 .. :try_end_2} :catchall_a

    .line 8
    :try_start_3
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->c:Lcom/ss/android/socialbase/downloader/i/e;

    invoke-interface {v0}, Lcom/ss/android/socialbase/downloader/i/e;->a()Ljava/io/InputStream;

    move-result-object v0

    if-eqz v0, :cond_18

    .line 9
    iget-object v9, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v9}, Les/zn0;->q()V

    .line 10
    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Ljava/io/InputStream;)Lcom/ss/android/socialbase/downloader/j/c;

    move-result-object v9
    :try_end_3
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_3 .. :try_end_3} :catch_a
    .catchall {:try_start_3 .. :try_end_3} :catchall_a

    .line 11
    :try_start_4
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    iget-boolean v10, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->u:Z

    invoke-virtual {v0, v10}, Les/zn0;->d(Z)V

    .line 12
    :goto_0
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->f()Z

    move-result v0
    :try_end_4
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_4 .. :try_end_4} :catch_8
    .catchall {:try_start_4 .. :try_end_4} :catchall_9

    if-eqz v0, :cond_7

    if-eqz v9, :cond_1

    .line 13
    invoke-interface {v9}, Lcom/ss/android/socialbase/downloader/j/c;->b()V

    .line 14
    :cond_1
    :try_start_5
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    if-eqz v0, :cond_3

    .line 15
    iget-object v2, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v2
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    .line 16
    :try_start_6
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-nez v0, :cond_2

    .line 17
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 18
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_2

    .line 19
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 20
    :cond_2
    monitor-exit v2

    goto :goto_1

    :catchall_0
    move-exception v0

    monitor-exit v2
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    :try_start_7
    throw v0

    .line 21
    :cond_3
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 22
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_4

    .line 23
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    .line 24
    :cond_4
    :goto_1
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_5

    .line 25
    :try_start_8
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    move-object v2, v0

    .line 26
    invoke-virtual {v2}, Ljava/io/IOException;->printStackTrace()V

    :cond_5
    :goto_2
    return-void

    :catchall_1
    move-exception v0

    move-object v2, v0

    .line 27
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_6

    .line 28
    :try_start_9
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_1

    goto :goto_3

    :catch_1
    move-exception v0

    move-object v3, v0

    .line 29
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    .line 30
    :cond_6
    :goto_3
    throw v2

    .line 31
    :cond_7
    :try_start_a
    invoke-interface {v9}, Lcom/ss/android/socialbase/downloader/j/c;->a()Lcom/ss/android/socialbase/downloader/j/b;

    move-result-object v0

    .line 32
    iget v10, v0, Lcom/ss/android/socialbase/downloader/j/b;->b:I

    const/4 v11, 0x0

    if-ne v10, v12, :cond_8

    move-object v4, v9

    goto/16 :goto_7

    .line 33
    :cond_8
    iget-object v13, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v13}, Les/zn0;->v()Z

    move-result v13
    :try_end_a
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_a .. :try_end_a} :catch_8
    .catchall {:try_start_a .. :try_end_a} :catchall_9

    if-nez v13, :cond_9

    :try_start_b
    iget-wide v13, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    iget-wide v4, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J
    :try_end_b
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_b .. :try_end_b} :catch_3
    .catchall {:try_start_b .. :try_end_b} :catchall_3

    move-object v15, v9

    :try_start_c
    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J

    sub-long/2addr v4, v8

    cmp-long v8, v13, v4

    if-lez v8, :cond_a

    iget-wide v4, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    iget-wide v13, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J

    sub-long/2addr v8, v13

    int-to-long v13, v10

    add-long/2addr v8, v13

    cmp-long v13, v4, v8

    if-gez v13, :cond_a

    .line 34
    iget-wide v4, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    iget-wide v13, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J
    :try_end_c
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_c .. :try_end_c} :catch_2
    .catchall {:try_start_c .. :try_end_c} :catchall_2

    sub-long/2addr v8, v13

    sub-long/2addr v4, v8

    long-to-int v10, v4

    goto :goto_5

    :catchall_2
    move-exception v0

    move-object v9, v15

    goto/16 :goto_e

    :catch_2
    move-exception v0

    goto :goto_4

    :catchall_3
    move-exception v0

    move-object v15, v9

    goto/16 :goto_e

    :catch_3
    move-exception v0

    move-object v15, v9

    :goto_4
    move-object v8, v15

    goto/16 :goto_12

    :cond_9
    move-object v15, v9

    .line 35
    :cond_a
    :goto_5
    :try_start_d
    iget-object v4, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    iget-object v5, v0, Lcom/ss/android/socialbase/downloader/j/b;->a:[B

    invoke-virtual {v4, v5, v11, v10}, Les/co0;->a([BII)V
    :try_end_d
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_d .. :try_end_d} :catch_7
    .catchall {:try_start_d .. :try_end_d} :catchall_8

    move-object v4, v15

    .line 36
    :try_start_e
    invoke-interface {v4, v0}, Lcom/ss/android/socialbase/downloader/j/c;->a(Lcom/ss/android/socialbase/downloader/j/b;)V

    .line 37
    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    int-to-long v13, v10

    add-long/2addr v8, v13

    iput-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    .line 38
    iget-object v5, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v5
    :try_end_e
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_e .. :try_end_e} :catch_6
    .catchall {:try_start_e .. :try_end_e} :catchall_7

    .line 39
    :try_start_f
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    if-eqz v0, :cond_b

    .line 40
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-nez v0, :cond_c

    .line 41
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    invoke-interface {v0, v13, v14}, Lcom/ss/android/socialbase/downloader/l/e;->a(J)Z

    move-result v0

    .line 42
    iget-object v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v8}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 43
    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Z)V

    goto :goto_6

    .line 44
    :cond_b
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    invoke-interface {v0, v13, v14}, Lcom/ss/android/socialbase/downloader/l/e;->a(J)Z

    move-result v0

    .line 45
    iget-object v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v8}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 46
    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Z)V

    .line 47
    :cond_c
    :goto_6
    monitor-exit v5
    :try_end_f
    .catchall {:try_start_f .. :try_end_f} :catchall_6

    .line 48
    :try_start_10
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->B()Z

    move-result v0

    if-eqz v0, :cond_17

    .line 49
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->v()Z

    move-result v0

    if-nez v0, :cond_16

    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    const-wide/16 v13, 0x0

    cmp-long v0, v8, v13

    if-ltz v0, :cond_16

    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    iget-wide v13, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    iget-wide v11, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J
    :try_end_10
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_10 .. :try_end_10} :catch_6
    .catchall {:try_start_10 .. :try_end_10} :catchall_7

    sub-long/2addr v13, v11

    cmp-long v5, v8, v13

    if-gtz v5, :cond_16

    :goto_7
    if-eqz v4, :cond_d

    .line 50
    invoke-interface {v4}, Lcom/ss/android/socialbase/downloader/j/c;->b()V

    .line 51
    :cond_d
    :try_start_11
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    if-eqz v0, :cond_f

    .line 52
    iget-object v4, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v4
    :try_end_11
    .catchall {:try_start_11 .. :try_end_11} :catchall_5

    .line 53
    :try_start_12
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-nez v0, :cond_e

    .line 54
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 55
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_e

    .line 56
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 57
    :cond_e
    monitor-exit v4

    goto :goto_8

    :catchall_4
    move-exception v0

    monitor-exit v4
    :try_end_12
    .catchall {:try_start_12 .. :try_end_12} :catchall_4

    :try_start_13
    throw v0

    .line 58
    :cond_f
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 59
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_10

    .line 60
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V
    :try_end_13
    .catchall {:try_start_13 .. :try_end_13} :catchall_5

    .line 61
    :cond_10
    :goto_8
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_11

    .line 62
    :try_start_14
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_14
    .catch Ljava/io/IOException; {:try_start_14 .. :try_end_14} :catch_4

    goto :goto_9

    :catch_4
    move-exception v0

    move-object v4, v0

    .line 63
    invoke-virtual {v4}, Ljava/io/IOException;->printStackTrace()V

    .line 64
    :cond_11
    :goto_9
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->v()Z

    move-result v0

    if-eqz v0, :cond_12

    return-void

    .line 65
    :cond_12
    iget-wide v4, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J

    sub-long/2addr v4, v8

    const-wide/16 v8, 0x0

    cmp-long v0, v4, v8

    if-ltz v0, :cond_14

    .line 66
    iget-wide v11, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    cmp-long v0, v11, v8

    if-ltz v0, :cond_14

    iget-wide v8, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    cmp-long v0, v8, v4

    if-nez v0, :cond_13

    goto :goto_a

    .line 67
    :cond_13
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/a;

    const/16 v8, 0x41b

    const/4 v9, 0x7

    new-array v9, v9, [Ljava/lang/Object;

    .line 68
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    const/4 v5, 0x0

    aput-object v4, v9, v5

    const/4 v4, 0x1

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    aput-object v2, v9, v4

    const/4 v2, 0x2

    iget-wide v3, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->n:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v9, v2

    const/4 v2, 0x3

    .line 69
    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v9, v2

    const/4 v2, 0x4

    iget-wide v3, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->m:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v9, v2

    const/4 v2, 0x5

    iget-wide v3, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->k:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v9, v2

    const/4 v2, 0x6

    iget-wide v3, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->l:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v9, v2

    const-string v2, "handle data length[%d] != content length[%d] downloadChunkContentLen[%d], range[%d, %d) , current offset[%d] , handle start from %d"

    .line 70
    invoke-static {v2, v9}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v8, v2}, Lcom/ss/android/socialbase/downloader/e/a;-><init>(ILjava/lang/String;)V

    throw v0

    :cond_14
    :goto_a
    return-void

    :catchall_5
    move-exception v0

    move-object v2, v0

    .line 71
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_15

    .line 72
    :try_start_15
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_15
    .catch Ljava/io/IOException; {:try_start_15 .. :try_end_15} :catch_5

    goto :goto_b

    :catch_5
    move-exception v0

    move-object v3, v0

    .line 73
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    .line 74
    :cond_15
    :goto_b
    throw v2

    :cond_16
    const-wide/16 v8, 0x0

    const/4 v12, -0x1

    move-wide/from16 v16, v8

    move-object v9, v4

    move-wide/from16 v4, v16

    goto/16 :goto_0

    .line 75
    :cond_17
    :try_start_16
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/d;

    invoke-direct {v0}, Lcom/ss/android/socialbase/downloader/e/d;-><init>()V

    throw v0
    :try_end_16
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_16 .. :try_end_16} :catch_6
    .catchall {:try_start_16 .. :try_end_16} :catchall_7

    :catchall_6
    move-exception v0

    .line 76
    :try_start_17
    monitor-exit v5
    :try_end_17
    .catchall {:try_start_17 .. :try_end_17} :catchall_6

    :try_start_18
    throw v0
    :try_end_18
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_18 .. :try_end_18} :catch_6
    .catchall {:try_start_18 .. :try_end_18} :catchall_7

    :catchall_7
    move-exception v0

    goto :goto_c

    :catch_6
    move-exception v0

    goto :goto_d

    :catchall_8
    move-exception v0

    move-object v4, v15

    :goto_c
    move-object v9, v4

    goto :goto_e

    :catch_7
    move-exception v0

    move-object v4, v15

    goto :goto_d

    :catchall_9
    move-exception v0

    move-object v4, v9

    goto :goto_e

    :catch_8
    move-exception v0

    move-object v4, v9

    :goto_d
    move-object v8, v4

    goto/16 :goto_12

    .line 77
    :cond_18
    :try_start_19
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/a;

    const/16 v2, 0x412

    new-instance v3, Ljava/io/IOException;

    const-string v4, "inputStream is null"

    invoke-direct {v3, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v2, v3}, Lcom/ss/android/socialbase/downloader/e/a;-><init>(ILjava/lang/Throwable;)V

    throw v0

    :catch_9
    move-exception v0

    .line 78
    new-instance v2, Lcom/ss/android/socialbase/downloader/e/a;

    const/16 v3, 0x41e

    invoke-direct {v2, v3, v0}, Lcom/ss/android/socialbase/downloader/e/a;-><init>(ILjava/lang/Throwable;)V

    throw v2
    :try_end_19
    .catch Lcom/ss/android/socialbase/downloader/e/a; {:try_start_19 .. :try_end_19} :catch_a
    .catchall {:try_start_19 .. :try_end_19} :catchall_a

    :catch_a
    move-exception v0

    const/4 v8, 0x0

    goto/16 :goto_12

    :catchall_a
    move-exception v0

    const/4 v9, 0x0

    .line 79
    :goto_e
    :try_start_1a
    sget-object v2, Lcom/ss/android/socialbase/downloader/downloader/e;->x:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "handleResponse: e = "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Les/wn0;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 80
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->f()Z

    move-result v2
    :try_end_1a
    .catchall {:try_start_1a .. :try_end_1a} :catchall_d

    if-eqz v2, :cond_1f

    if-eqz v9, :cond_19

    .line 81
    invoke-interface {v9}, Lcom/ss/android/socialbase/downloader/j/c;->b()V

    .line 82
    :cond_19
    :try_start_1b
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    if-eqz v0, :cond_1b

    .line 83
    iget-object v2, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v2
    :try_end_1b
    .catchall {:try_start_1b .. :try_end_1b} :catchall_c

    .line 84
    :try_start_1c
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-nez v0, :cond_1a

    .line 85
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 86
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_1a

    .line 87
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 88
    :cond_1a
    monitor-exit v2

    goto :goto_f

    :catchall_b
    move-exception v0

    monitor-exit v2
    :try_end_1c
    .catchall {:try_start_1c .. :try_end_1c} :catchall_b

    :try_start_1d
    throw v0

    .line 89
    :cond_1b
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 90
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_1c

    .line 91
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V
    :try_end_1d
    .catchall {:try_start_1d .. :try_end_1d} :catchall_c

    .line 92
    :cond_1c
    :goto_f
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_1d

    .line 93
    :try_start_1e
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_1e
    .catch Ljava/io/IOException; {:try_start_1e .. :try_end_1e} :catch_b

    goto :goto_10

    :catch_b
    move-exception v0

    move-object v2, v0

    .line 94
    invoke-virtual {v2}, Ljava/io/IOException;->printStackTrace()V

    :cond_1d
    :goto_10
    return-void

    :catchall_c
    move-exception v0

    move-object v2, v0

    .line 95
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_1e

    .line 96
    :try_start_1f
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_1f
    .catch Ljava/io/IOException; {:try_start_1f .. :try_end_1f} :catch_c

    goto :goto_11

    :catch_c
    move-exception v0

    move-object v3, v0

    .line 97
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    .line 98
    :cond_1e
    :goto_11
    throw v2

    .line 99
    :cond_1f
    :try_start_20
    invoke-static {}, Les/wn0;->a()Z

    move-result v2

    if-eqz v2, :cond_20

    .line 100
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_20
    const-string v2, "DownloadResponseHandler"

    .line 101
    invoke-static {v0, v2}, Lcom/ss/android/socialbase/downloader/m/f;->a(Ljava/lang/Throwable;Ljava/lang/String;)V
    :try_end_20
    .catchall {:try_start_20 .. :try_end_20} :catchall_d

    const/4 v2, 0x0

    throw v2

    :catchall_d
    move-exception v0

    move-object v2, v0

    goto/16 :goto_16

    :catch_d
    move-exception v0

    const/4 v2, 0x0

    move-object v8, v2

    .line 102
    :goto_12
    :try_start_21
    sget-object v2, Lcom/ss/android/socialbase/downloader/downloader/e;->x:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "handleResponse: BaseException e = "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Les/wn0;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 103
    iget-object v2, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->p:Les/jo0;

    const-string v3, "ignore_base_ex_on_stop_status"

    invoke-virtual {v2, v3}, Les/jo0;->a(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_27

    .line 104
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->f()Z

    move-result v2
    :try_end_21
    .catchall {:try_start_21 .. :try_end_21} :catchall_10

    if-eqz v2, :cond_27

    if-eqz v8, :cond_21

    .line 105
    invoke-interface {v8}, Lcom/ss/android/socialbase/downloader/j/c;->b()V

    .line 106
    :cond_21
    :try_start_22
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    if-eqz v0, :cond_23

    .line 107
    iget-object v2, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v2
    :try_end_22
    .catchall {:try_start_22 .. :try_end_22} :catchall_f

    .line 108
    :try_start_23
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-nez v0, :cond_22

    .line 109
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 110
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_22

    .line 111
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 112
    :cond_22
    monitor-exit v2

    goto :goto_13

    :catchall_e
    move-exception v0

    monitor-exit v2
    :try_end_23
    .catchall {:try_start_23 .. :try_end_23} :catchall_e

    :try_start_24
    throw v0

    .line 113
    :cond_23
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 114
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_24

    .line 115
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V
    :try_end_24
    .catchall {:try_start_24 .. :try_end_24} :catchall_f

    .line 116
    :cond_24
    :goto_13
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_25

    .line 117
    :try_start_25
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_25
    .catch Ljava/io/IOException; {:try_start_25 .. :try_end_25} :catch_e

    goto :goto_14

    :catch_e
    move-exception v0

    move-object v2, v0

    .line 118
    invoke-virtual {v2}, Ljava/io/IOException;->printStackTrace()V

    :cond_25
    :goto_14
    return-void

    :catchall_f
    move-exception v0

    move-object v2, v0

    .line 119
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_26

    .line 120
    :try_start_26
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_26
    .catch Ljava/io/IOException; {:try_start_26 .. :try_end_26} :catch_f

    goto :goto_15

    :catch_f
    move-exception v0

    move-object v3, v0

    .line 121
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    .line 122
    :cond_26
    :goto_15
    throw v2

    .line 123
    :cond_27
    :try_start_27
    invoke-static {}, Les/wn0;->a()Z

    move-result v2

    if-eqz v2, :cond_28

    .line 124
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 125
    :cond_28
    throw v0
    :try_end_27
    .catchall {:try_start_27 .. :try_end_27} :catchall_10

    :catchall_10
    move-exception v0

    move-object v2, v0

    move-object v9, v8

    :goto_16
    if-eqz v9, :cond_29

    .line 126
    invoke-interface {v9}, Lcom/ss/android/socialbase/downloader/j/c;->b()V

    .line 127
    :cond_29
    :try_start_28
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->o:Z

    if-eqz v0, :cond_2b

    .line 128
    iget-object v3, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->j:Lcom/ss/android/socialbase/downloader/l/e;

    monitor-enter v3
    :try_end_28
    .catchall {:try_start_28 .. :try_end_28} :catchall_12

    .line 129
    :try_start_29
    iget-boolean v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->i:Z

    if-nez v0, :cond_2a

    .line 130
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 131
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_2a

    .line 132
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V

    .line 133
    :cond_2a
    monitor-exit v3

    goto :goto_17

    :catchall_11
    move-exception v0

    monitor-exit v3
    :try_end_29
    .catchall {:try_start_29 .. :try_end_29} :catchall_11

    :try_start_2a
    throw v0

    .line 134
    :cond_2b
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->e:Lcom/ss/android/socialbase/downloader/impls/k;

    invoke-direct {v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/e;->a(Lcom/ss/android/socialbase/downloader/downloader/l;)V

    .line 135
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_2c

    .line 136
    invoke-direct/range {p0 .. p0}, Lcom/ss/android/socialbase/downloader/downloader/e;->h()V
    :try_end_2a
    .catchall {:try_start_2a .. :try_end_2a} :catchall_12

    .line 137
    :cond_2c
    :goto_17
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_2d

    .line 138
    :try_start_2b
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_2b
    .catch Ljava/io/IOException; {:try_start_2b .. :try_end_2b} :catch_10

    goto :goto_18

    :catch_10
    move-exception v0

    move-object v3, v0

    .line 139
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    .line 140
    :cond_2d
    :goto_18
    throw v2

    :catchall_12
    move-exception v0

    move-object v2, v0

    .line 141
    iget-object v0, v1, Lcom/ss/android/socialbase/downloader/downloader/e;->g:Les/co0;

    if-eqz v0, :cond_2e

    .line 142
    :try_start_2c
    invoke-virtual {v0}, Les/co0;->b()V
    :try_end_2c
    .catch Ljava/io/IOException; {:try_start_2c .. :try_end_2c} :catch_11

    goto :goto_19

    :catch_11
    move-exception v0

    move-object v3, v0

    .line 143
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    .line 144
    :cond_2e
    :goto_19
    throw v2

    .line 145
    :cond_2f
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/f;

    const/16 v2, 0x3ec

    const-string v3, "the content-length is 0"

    invoke-direct {v0, v2, v3}, Lcom/ss/android/socialbase/downloader/e/f;-><init>(ILjava/lang/String;)V

    throw v0

    :cond_30
    :goto_1a
    return-void
.end method

.method public e()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/ss/android/socialbase/downloader/downloader/e;->v:J

    return-wide v0
.end method
